<?php
	class Hocsinh extends AppModel{
		//ten cua model,neu ko co php4 se bi loi
		public $name = 'Hocsinh';
		//primary key of model
		public $primaryKey = 'MaHS';
		//each Hocsinh belong to Lop 
		public $belongsTo = array(
			'Lop'=>array(
					'className'=>'Lop',
					'foreignKey'=>'MaLop',
					));//'conditions'=>array('Hocsinh.MaLop'=>'Lop.MaLop'
	}	
?>